package com.lzh.gulimall.member.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.lzh.common.utils.PageUtils;
import com.lzh.gulimall.member.entity.MemberEntity;
import com.lzh.gulimall.member.vo.MemberUserLoginVo;
import com.lzh.gulimall.member.vo.MemberUserRegisterVo;
import com.lzh.gulimall.member.vo.SocialUser;

import java.util.Map;

/**
 * 会员
 *
 * @author liuzhihui
 * @email 
 * @date 2020-08-17 17:29:22
 */
public interface MemberService extends IService<MemberEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void register(MemberUserRegisterVo vo);

    /**
     * 用户登录
     * @param vo
     * @return
     */
    MemberEntity login(MemberUserLoginVo vo);

    /**
     * 社交用户的登录
     * @param socialUser
     * @return
     */
    MemberEntity login(SocialUser socialUser) throws Exception;
}

